package com.demo.config;

import cn.hutool.core.date.DateUtil;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author gxd
 * @since 2025/6/3
 */
@Slf4j
@Component
public class XxlJobHandler {

    @XxlJob("UpdateStatus")
    public void updateStatus() {
        log.info("执行定时任务，执行时间：{}", DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss"));
    }
}
